import { userHttp } from '@/utils/http';

// 用户注册
export const register = (userInfo) => {
  return userHttp.post('/user/system/register', userInfo);
};

// 用户登录
export const login = (loginDto) => {
  return userHttp.post('/user/system/login', loginDto);
};

// 获取用户信息
export const getUserInfo = (userId) => {
  return userHttp.get(`/user/system/${userId}`);
};